package com.example.jf.jfapp;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.webkit.WebView;
import android.webkit.WebViewClient;

import butterknife.BindView;
import butterknife.ButterKnife;

public class ArticleActivity extends AppCompatActivity {

    private static final String TAG = "ArticleActivity";
    @BindView(R.id.wv_article)
    WebView wvArticle;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_article);
        ButterKnife.bind(this);
        Log.e(TAG, "onCreate: " + getIntent().getStringExtra("getcontent"));
        wvArticle.getSettings().setJavaScriptEnabled(true);
        wvArticle.setWebViewClient(new WebViewClient());
        wvArticle.loadUrl(getIntent().getStringExtra("getcontent"));
    }
}
